#include "stdafx.h"
#include "Waypoint.h"

Waypoint::Waypoint(void)
{
}

Waypoint::~Waypoint(void)
{
}

void Waypoint::AddWaypoint(Vector3 waypoint)
{
	m_waypoints.push_back(waypoint);
}

void Waypoint::PopFront()
{
	if (!m_waypoints.empty())
		m_waypoints.pop_front();
}

void Waypoint::PopBack()
{
	if (!m_waypoints.empty())
		m_waypoints.pop_back();
}

void Waypoint::Clear()
{
	m_waypoints.clear();
}

Vector3 const Waypoint::GetNext()
{
	if (!m_waypoints.empty())
		return m_waypoints.front();
	else
		return Vector3(0,0,0);
}

bool Waypoint::WaypointsLeft()
{
	if (m_waypoints.empty())
		return false;
	else
		return true;
}